package pl.com.sjap.agenci;

public class CarUser extends Person {

	private int experience; //doswiadczenie w latach - zwieksza szybkosc i zmniejsza koszty
	private double costPerKm; //koszt przejazdu 1 km jego autkiem
	private double avrSpeed; //srednia szybkosc
	private double carEfficency; //okresla sprawnosc autka - od 0 do 1
	
	public double getCarEfficency() {
		return carEfficency;
	}
	public void setCarEfficency(double carEfficency) {
		this.carEfficency = carEfficency;
	}
	public CarUser(String name, String surname, int xposition, int yposition,
			int experience, double costPerKm, double avrSpeed,
			double carEfficency) {
		super(name, surname, xposition, yposition);
		this.experience = experience;
		this.costPerKm = costPerKm;
		this.avrSpeed = avrSpeed;
		this.carEfficency = carEfficency;
	}
	public int getExperience() {
		return experience;
	}
	public void setExperience(int experience) {
		this.experience = experience;
	}
	public double getCostPerKm() {
		return costPerKm;
	}
	public void setCostPerKm(double costPerKm) {
		this.costPerKm = costPerKm;
	}
	public double getAvrSpeed() {
		return avrSpeed;
	}
	public void setAvrSpeed(double avrSpeed) {
		this.avrSpeed = avrSpeed;
	}
	
	
	
	

}
